<%@ page import="java.util.List" %>
<%@ page import="com.example.testdemo.pojo.Book" %><%--
  Created by IntelliJ IDEA.
  User: feina
  Date: 2022/1/4
  Time: 13:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<%
  List<Book> books = (List<Book>) session.getAttribute("list");
%>
<body>
  <table>
    <tr>
      <th>isbn</th>
      <th>name</th>
      <th>auther</th>
      <th>number</th>
      <th>price</th>
    </tr>
    <%
      for (Book book:books){
    %>
    <tr>
      <td><%=book.getIsbn()%></td>
      <td><%=book.getBname()%></td>
      <td><%=book.getBauther()%></td>
      <td><%=book.getBnumber()%></td>
      <td><%=book.getPrice()%></td>
    </tr>
    <%
      }
    %>
  </table>
</body>
</html>
